math.randomseed(os.time())

local array = {
    "catppuccin-latte",
    "github_light", -- nice
    "github_light_colorblind",
    "nordic",

    "github_dark",
    "github_dark_high_contrast",
    "github_dark_colorblind",
    "catppuccin-mocha",
    "catppuccin-frappe",
    "catppuccin-macchiato",
    "darkplus",
    -- "slate",
}

local colorscheme = array[math.random(#array)]

-- local colorscheme = "catppuccin-latte"

if colorscheme == "catppuccin" then
    require("user.themes.catppuccin")
elseif colorscheme == "onedark" then
    require("user.themes.onedark")
elseif colorscheme == "github-nvim-theme" then
    require("user.themes.github-nvim-theme")
elseif colorscheme == "darkplus" then
    require("user.themes.darkplus")
end

local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)

if not status_ok then
    vim.notify("colorscheme " .. colorscheme .. " not found!")
    return
end

vim.cmd("colorscheme " .. colorscheme) -- 重新设置主题以解决主题颜色问题

local colors = {}

    -- colors = {
    --     '#319331',
    --     '#7B3814',
    --     '#0431FA',
    -- }
    -- colors = {
    --     '#FFD700',
    --     '#DA70D6',
    --     '#179FFF',
    -- }
    --
